/*
 * @Project Name: spring-boot
 * @File Name: UserService
 * @Package Name: com.hhly.spring.boot.cache
 * @Date: 2017/12/13 17:52
 * @Creator: linshixing-1199
 * @line------------------------------
 * @修改人:
 * @修改时间:
 * @修改内容:
 */

package com.sm.shoplook.service.system;

import java.util.List;

import com.github.pagehelper.PageInfo;
import com.sm.shoplook.domain.system.Role;
import com.sm.shoplook.vo.base.ApiException;
import com.sm.shoplook.vo.base.ApiResult;
import com.sm.shoplook.vo.system.role.RolePageSearchReqVo;

/**
 * @author chenpy-1072
 * @desc UserService
 * @date 2017/12/13 17:52
 * @see
 */
public interface RoleService {

	ApiResult<PageInfo<Role>> selectRoleListPage(RolePageSearchReqVo rolePageSearchReqVo);

	ApiResult<Role> selectRoleById(Integer roleId);

	ApiResult deleteRoles(String[] idList) throws ApiException;

	ApiResult saveRole(Role role) throws ApiException;

	ApiResult saveRolePermission(String menuCodes, String permissionCodes, String roleCode) throws ApiException;

	ApiResult<List<String>> selectRoleMenuPermissions(String roleCode);
}
